package com.listener;

import org.springframework.context.ApplicationEvent;
import org.springframework.context.annotation.AnnotationConfigApplicationContext;

/**
 * @ClassName:
 * @author:
 * @Description:
 * @Date
 **/
public class Application {
	public static void main(String[] args) {
		AnnotationConfigApplicationContext configApplicationContext=new AnnotationConfigApplicationContext(AppConfig.class);
		configApplicationContext.publishEvent(new ApplicationEvent("publish event") {
			@Override
			public Object getSource() {
				return super.getSource();
			}
		});
		configApplicationContext.close();
	}
}
